package cn.sumpu.app.coolsk.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.coolsk.domain.Hotel;
import cn.sumpu.app.coolsk.domain.Room;
import cn.sumpu.app.coolsk.domain.RoomPrice;
import cn.sumpu.app.coolsk.exception.AppBusinessException;

public interface HotelRoomDao {
	public void insertHotel(Hotel hotel)throws AppBusinessException;

	public void updateHotel(Hotel hotel)throws AppBusinessException;
	
	public List<Hotel> getHotel(Map<String,Object> map)throws AppBusinessException;
	
	public int getHotelCount(Map<String,Object> map)throws AppBusinessException;
	
	public List<Hotel> searchHotel(Map<String,Object> map)throws AppBusinessException;
	
	public int searchHotelCount(Map<String,Object> map)throws AppBusinessException;
	
	public void delHotel(Map<String,Object> map)throws AppBusinessException;
	
	public void insertRoom(Room room)throws AppBusinessException;

	public void updateRoom(Room room)throws AppBusinessException;
	
	public List<Room> getRoom(Map<String,Object> map)throws AppBusinessException;
	
	public void delRoom(Map<String,Object> map)throws AppBusinessException;
	
	public void insertRoomPrice(RoomPrice roomPrice)throws AppBusinessException;
	
	public void delRoomPrice(Map<String,Object> map)throws AppBusinessException;
	
	public List<RoomPrice> getRoomPrice(Map<String,Object> map)throws AppBusinessException;
	
	public int getRoomCount(Map<String,Object> map)throws AppBusinessException;
}
